home *** CD-ROM | disk | FTP | other *** search
- /*
- File: SEPriv.cpp
-
- Contains: xxx put contents here xxx
-
- Owned by: Nick Pilch
-
- Copyright: © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <3> 9/23/96 JP 1384958: Moved routines to SEUtils.cpp
- <9> 6/30/95 JP Acquire when creating standard part token
- <8> 6/19/95 eeh 1246443: add PartFrameFromStandardPartToken
- etc.
- <7> 6/13/95 JP Changed AcquireActiveWindow to
- AcquireFrontRootWindow
- <6> 5/26/95 RR #1251403: Multithreading naming support
- <5> 5/21/95 NP 1248898: GetUserToken, ODDescToAEDesc, etc.
- recipe change. Add SetUserODToken for
- setting user ODDesc in an OSLToken.
- <4> 5/17/95 RR #1250135/1250137/1250143 Getters increment
- refcount
- <3> 4/25/95 NP 1186795, 1237220, 1240571: Fixed whose
- clauses by allowing swapping in count proc.
- <2> 4/25/95 JP 1237938: Added ODRgstry.xh include for
- kODStandardPartTokenType
- <1> 4/14/95 NP first checked in
-
- To Do:
- */
-
- #ifndef _SEPRIV_
- #include "SEPriv.h"
- #endif
-
- #ifndef _CNTXTOSL_
- #include "CntxtOSL.h"
- #endif
-
-
- //------------------------------------------------------------------------------
- // SetUserODToken
- //
- // Set the "user" token in the token that the OSL passes around.
- //
- // The userToken is the first four bytes.
- //------------------------------------------------------------------------------
-
- void SetUserODToken(OSLToken* oslToken, ODDesc* odDesc)
- {
- *((ODDesc**)(*(oslToken->dataHandle))) = odDesc;
- }
-
-